﻿using System;

namespace MsTestUtilities.SolutionAnalysis
{
    public class ProjectReference : IItem
    {        
        public ProjectReference(CsProject parentProject, Item item)         
        {
            ParentProject = parentProject;
            Include = item.Include;
            Name = item.GetMetadata("Name");
            ProjectId = new Guid(item.GetMetadata("Project"));
        }

        public CsProject ParentProject { get; private set; }

        public string Include { get; private set; }

        public string Name { get; private set; }

        public Guid ProjectId { get; private set; }
    }
}
